<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: METSlib</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('index.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="PageDoc"><div class="header">
  <div class="headertitle">
<div class="title">METSlib </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div class="image">
<img src="http://www.coin-or.org/images/logo/COIN-OR_150.png" alt=""/>
</div>
<h1><a class="anchor" id="Introduction"></a>
Introduction</h1>
<p>This is a library implementing some neighborhood based metaheuristics with or without memory.</p>
<p>The solution instance must implement <a class="el" href="classmets_1_1feasible__solution.html" title="interface of a feasible solution space to be searched with tabu search.">mets::feasible_solution</a> and the moves must be derived from <a class="el" href="classmets_1_1move.html" title="Move to be operated on a feasible solution.">mets::move</a> classes.</p>
<p>The neighborhood can be specified implementing a <a class="el" href="classmets_1_1move__manager.html" title="A neighborhood generator.">mets::move_manager</a> subclass or providing another class with the same concept (using the move_manager can ease things, but you can also provide your own custom neighorhood iterator).</p>
<p>All the mentioned classes must be implemented to model the problem at hand. See as an example the "tutorial" and "qap" programs.</p>
<p>You are also responsible of configuring and running the algorithm of choice.</p>
<p>Once your model is set up you are free of experimenting different metaheuristics without changing it, but simply configuring one algorithm or another.</p>
<p>Each algorithm can be customized implementing your own decorating classes, although a bunch of predefined and commonly used decorators are provided with the library, some problems may need customary tabu lists, termination criterias, aspiration criteria, or cooling schedules.</p>
<p>The framework you must implement your model into is made of:</p>
<ul>
<li><a class="el" href="classmets_1_1feasible__solution.html" title="interface of a feasible solution space to be searched with tabu search.">mets::feasible_solution</a><ul>
<li><a class="el" href="classmets_1_1evaluable__solution.html" title="A copyable and evaluable solution implementation,">mets::evaluable_solution</a> (use this if you also use <a class="el" href="classmets_1_1best__ever__solution.html" title="The best ever solution recorder can be used as a simple solution recorder that just records the best ...">mets::best_ever_solution</a>)</li>
<li><a class="el" href="classmets_1_1permutation__problem.html" title="An abstract permutation problem.">mets::permutation_problem</a></li>
</ul>
</li>
<li><a class="el" href="classmets_1_1move.html" title="Move to be operated on a feasible solution.">mets::move</a><ul>
<li><a class="el" href="classmets_1_1mana__move.html" title="A Mana Move is a move that can be automatically made tabu by the mets::simple_tabu_list.">mets::mana_move</a> (use this if you also use by <a class="el" href="classmets_1_1simple__tabu__list.html" title="Simplistic implementation of a tabu-list.">mets::simple_tabu_list</a>)</li>
<li><a class="el" href="classmets_1_1swap__elements.html" title="A mets::mana_move that swaps two elements in a mets::permutation_problem.">mets::swap_elements</a></li>
</ul>
</li>
</ul>
<p>The toolkit of implemented algorithms is made of:</p>
<ul>
<li><a class="el" href="classmets_1_1move__manager.html" title="A neighborhood generator.">mets::move_manager</a> (or a class implementing the same concept)<ul>
<li><a class="el" href="classmets_1_1swap__neighborhood.html" title="Generates a stochastic subset of the neighborhood.">mets::swap_neighborhood</a></li>
</ul>
</li>
<li><a class="el" href="classmets_1_1local__search.html" title="Local search algorithm.">mets::local_search</a></li>
<li><a class="el" href="classmets_1_1simulated__annealing.html" title="Search by Simulated Annealing.">mets::simulated_annealing</a><ul>
<li><a class="el" href="classmets_1_1abstract__cooling__schedule.html" title="Cooling criteria (for Simulated Annealing).">mets::abstract_cooling_schedule</a></li>
<li><a class="el" href="classmets_1_1solution__recorder.html" title="The solution recorder is used by search algorithm, at the end of each iteration, to record the best s...">mets::solution_recorder</a><ul>
<li><a class="el" href="classmets_1_1best__ever__solution.html" title="The best ever solution recorder can be used as a simple solution recorder that just records the best ...">mets::best_ever_solution</a></li>
</ul>
</li>
<li><a class="el" href="classmets_1_1termination__criteria__chain.html" title="Function object expressing a termination criteria">mets::termination_criteria_chain</a><ul>
<li><a class="el" href="classmets_1_1iteration__termination__criteria.html" title="Termination criteria based on the number of iterations.">mets::iteration_termination_criteria</a></li>
<li><a class="el" href="classmets_1_1noimprove__termination__criteria.html" title="Termination criteria based on the number of iterations without an improvement.">mets::noimprove_termination_criteria</a></li>
<li><a class="el" href="classmets_1_1threshold__termination__criteria.html" title="Termination criteria based on cost value">mets::threshold_termination_criteria</a></li>
</ul>
</li>
</ul>
</li>
<li><a class="el" href="classmets_1_1tabu__search.html" title="Tabu Search algorithm.">mets::tabu_search</a><ul>
<li><a class="el" href="classmets_1_1tabu__list__chain.html" title="An abstract tabu list">mets::tabu_list_chain</a><ul>
<li><a class="el" href="classmets_1_1simple__tabu__list.html" title="Simplistic implementation of a tabu-list.">mets::simple_tabu_list</a></li>
</ul>
</li>
<li><a class="el" href="classmets_1_1aspiration__criteria__chain.html" title="Function object expressing an aspiration criteria">mets::aspiration_criteria_chain</a><ul>
<li><a class="el" href="classmets_1_1best__ever__criteria.html" title="Aspiration criteria implementation.">mets::best_ever_criteria</a></li>
</ul>
</li>
<li><a class="el" href="classmets_1_1solution__recorder.html" title="The solution recorder is used by search algorithm, at the end of each iteration, to record the best s...">mets::solution_recorder</a><ul>
<li><a class="el" href="classmets_1_1best__ever__solution.html" title="The best ever solution recorder can be used as a simple solution recorder that just records the best ...">mets::best_ever_solution</a></li>
</ul>
</li>
<li><a class="el" href="classmets_1_1termination__criteria__chain.html" title="Function object expressing a termination criteria">mets::termination_criteria_chain</a><ul>
<li><a class="el" href="classmets_1_1iteration__termination__criteria.html" title="Termination criteria based on the number of iterations.">mets::iteration_termination_criteria</a></li>
<li><a class="el" href="classmets_1_1noimprove__termination__criteria.html" title="Termination criteria based on the number of iterations without an improvement.">mets::noimprove_termination_criteria</a></li>
<li><a class="el" href="classmets_1_1threshold__termination__criteria.html" title="Termination criteria based on cost value">mets::threshold_termination_criteria</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<p>To use the <a class="el" href="classmets_1_1simple__tabu__list.html" title="Simplistic implementation of a tabu-list.">mets::simple_tabu_list</a> you need to derive your moves from the <a class="el" href="classmets_1_1mana__move.html" title="A Mana Move is a move that can be automatically made tabu by the mets::simple_tabu_list.">mets::mana_move</a> base class and implement the pure virtual methods. </p>
</div></div><!-- PageDoc -->
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
